libmystd.a:mystdio.o mystring.o
	@ar -rc libmystd.a mystdio.o mystring.o 
	@echo "build $^ to $@ ... done"
%.o:%.c
	@gcc -c $<
	@echo "compiling $< to $@ ... done"
.PHONY:clean
clean:
	@rm -rf *.o *.a stdc
	@echo "clean ... done"
.PHONY:output
output:
	@mkdir -p stdc/include
	@mkdir -p stdc/lib
	@cp *.h stdc/include
	@cp *.a stdc/lib
	@tar -czf stdc.tgz stdc
	@echo "output ... done"

